<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ServerManager
 *
 * @author David
 */
include("Server.php");
class ServerManager {
    private $servers;

    public function __constructor(){
        $this->servers = new SplFixedArray(1);
        $this->servers[0] = new Server();
        $this->servers[0]->connect("192.168.2.7", 60);
    }
    
    public function isAvailable($serverID){
        echo $this->servers[$serverID]->checkAvailability();
    }

    public function getStatus($serverID){
        echo $this->servers[$serverID]->getStatus();
    }
    public function createJob(){
        echo $this->servers[0]->createJob();
    }
}
?>
